package com.gcb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gcb.domain.dto.OrderStaffQueryDTO;
import com.gcb.domain.entity.OrderStaff;
import com.gcb.domain.vo.OrderStaffVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface OrderStaffMapper extends BaseMapper<OrderStaff> {
    

    /**
     * 查询 根据主键 id 查询
     * @author chencj
     * @date 2024/03/07
     **/
    OrderStaffVO getDetail(Long id);

    /**
     * 查询列表
     * @author chencj
     * @date 2024/03/07
     **/
    List<OrderStaffVO> list(OrderStaffQueryDTO queryDTO);

    void batchUpdateState(@Param("ids") Long[] ids,
                          @Param("state") Integer state,
                          @Param("updateBy") Long updateBy);
}
